import * as React from 'react';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import Register from './register';
import Index from './index';
import PwdLogin from './pwd-login';
import CodeLogin from './code-login';
import AreaCode from './area-code';
import PerfectInfo from './perfect-info';
import SelectGender from './select-gender';
import Language from './language';
import CountryArea from './country-area';
import AvatarSetting from './avatar-setting';
import { Provider } from 'react-redux';
import store from '@/store/postindex';



const Stack = createNativeStackNavigator();

export default function LoginLayout() {
  return (
    <Provider store={store}>
      <Stack.Navigator id={undefined} screenOptions={{ headerShown: false }}>
        <Stack.Screen name="register" component={Register} />
        <Stack.Screen name="index" component={Index} />
        <Stack.Screen name="pwd-login" component={PwdLogin} />
        <Stack.Screen name="code-login" component={CodeLogin} />
        <Stack.Screen name="area-code" component={AreaCode} />
        <Stack.Screen name="perfect-info" component={PerfectInfo} />
        <Stack.Screen name="select-gender" component={SelectGender} />
        <Stack.Screen name="language" component={Language} />
        <Stack.Screen name="country-area" component={CountryArea} />
        <Stack.Screen name="avatar-setting" component={AvatarSetting} />
      </Stack.Navigator>
    </Provider>
  );
}
